package com.ruoyi.caiwu.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证分录对象 accounting_voucher_entry
 *
 * @author ruoyi
 * @date 2025-02-26
 */
public class AccountingVoucherEntry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分录id */
    private Long entryId;

    /** 凭证id */
    @Excel(name = "凭证id")
    private Long voucherId;

    /** 会计科目id */
    @Excel(name = "会计科目id")
    private Long accountSubjectId;

    /** 借方金额 */
    @Excel(name = "借方金额")
    private BigDecimal amount;

    /** 分录摘要 */
    @Excel(name = "分录摘要")
    private String entrySummary;

    public void setEntryId(Long entryId)
    {
        this.entryId = entryId;
    }

    public Long getEntryId()
    {
        return entryId;
    }
    public void setVoucherId(Long voucherId)
    {
        this.voucherId = voucherId;
    }

    public Long getVoucherId()
    {
        return voucherId;
    }
    public void setAccountSubjectId(Long accountSubjectId)
    {
        this.accountSubjectId = accountSubjectId;
    }

    public Long getAccountSubjectId()
    {
        return accountSubjectId;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setEntrySummary(String entrySummary)
    {
        this.entrySummary = entrySummary;
    }

    public String getEntrySummary()
    {
        return entrySummary;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("entryId", getEntryId())
            .append("voucherId", getVoucherId())
            .append("accountSubjectId", getAccountSubjectId())
            .append("amount", getAmount())
            .append("entrySummary", getEntrySummary())
            .toString();
    }
}
